import { Router } from 'express';
import { getWordList, getWordDetail, recordLearning, getReviewPlan } from '../controllers/wordController';
import { auth } from '../middleware/auth';

const router = Router();

// 获取单词列表
router.get('/words', auth, getWordList);

// 获取单词详情
router.get('/words/:id', auth, getWordDetail);

// 记录学习
router.post('/words/learn', auth, recordLearning);

// 获取复习计划
router.get('/words/review', auth, getReviewPlan);

export default router; 